import { createStore } from 'vuex'

export default createStore({
  state: {
     navFlag:true,
     adminDia:false, //控制显示添加管理员隐藏的
     breadList:[],
     videoFlag:false ////控制显示添加视频隐藏的
  },
  mutations: {
      changeNavFlag(state,flag){
        state.navFlag=flag;
      },
      changeAdminDia(state,flag){
        state.adminDia=flag;
      },
      changeBreadList(state,arr){
        state.breadList=arr;
      },
      changeVideoFlag(state,flag){
        state.videoFlag=flag;
      }
  },
  actions: {
  },
  modules: {
  }
})
